package com.cdz.domain;

import lombok.Data;

import javax.persistence.*;
import java.time.LocalDateTime;


@Data
@Entity
public class Firmware {

    @Id
    private Integer id;
    private String fileName;

    @Lob
    @Column(length = 16777215) // 针对MySQL的MEDIUMBLOB
    private byte[] fileData;

    private LocalDateTime uploadTime;

}
